package com.ygqh.baby.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.ygqh.baby.ao.QueryInfo;
import com.ygqh.baby.model.FriendsRankings;
import com.ygqh.baby.po.YgDrawPrize;
import com.ygqh.baby.po.YgDrawPrizeExample;

public interface YgDrawPrizeMapper {
	int countByExample(YgDrawPrizeExample example);

	int deleteByExample(YgDrawPrizeExample example);

	int deleteByPrimaryKey(Long id);

	int insert(YgDrawPrize record);

	int insertSelective(YgDrawPrize record);

	List<YgDrawPrize> selectByExample(YgDrawPrizeExample example);

	YgDrawPrize selectByPrimaryKey(Long id);

	int updateByExampleSelective(@Param("record") YgDrawPrize record, @Param("example") YgDrawPrizeExample example);

	int updateByExample(@Param("record") YgDrawPrize record, @Param("example") YgDrawPrizeExample example);

	int updateByPrimaryKeySelective(YgDrawPrize record);

	int updateByPrimaryKey(YgDrawPrize record);

	int countSuper(@Param("q") String q);

	List<YgDrawPrize> selectSuper(@Param("queryInfo") QueryInfo queryInfo, @Param("q") String q);

	Integer selectLastCountByUserId(Long userId);

	int updateCount(@Param("userId") Long userId, @Param("count") int count, @Param("sourceCode") String sourceCode, @Param("remark") String remark,
			@Param("updateBy") String updateBy);

	List<FriendsRankings> getFriendsRankings(@Param("userId") Long userId, @Param("openId") String openId, @Param("source") String source);

}
